package com.ifp.opengate.boot.bean;

import org.springframework.http.HttpStatus;

public class Data {

    private long reqStartTime;
    private long reqEndTime;
    private String status;
    private int requestFail;
    private String requestCause;
    private int failCount;
    private HttpStatus statusCode;

    public HttpStatus getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(HttpStatus statusCode2) {
        this.statusCode = statusCode2;
    }

    private String appId;
    private String apiId;
    private String transGlobalFlow;
    private long timestampInMillis;
    private String clientIp;
    private String hostIp;

    public int getRequestFail() {
        return requestFail;
    }

    public void setRequestFail(int requestFail) {
        this.requestFail = requestFail;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public long getReqStartTime() {
        return reqStartTime;
    }

    public void setReqStartTime(long reqStartTime) {
        this.reqStartTime = reqStartTime;
    }

    public long getReqEndTime() {
        return reqEndTime;
    }

    public void setReqEndTime(long reqEndTime) {
        this.reqEndTime = reqEndTime;
    }

    public String getRequestCause() {
        return requestCause;
    }

    public void setRequestCause(String requestCause) {
        this.requestCause = requestCause;
    }

    public int getFailCount() {
        return failCount;
    }

    public void setFailCount(int failCount) {
        this.failCount = failCount;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getApiId() {
        return apiId;
    }

    public void setApiId(String apiId) {
        this.apiId = apiId;
    }

    public String getTransGlobalFlow() {
        return transGlobalFlow;
    }

    public void setTransGlobalFlow(String transGlobalFlow) {
        this.transGlobalFlow = transGlobalFlow;
    }

    public Data() {}

    public Data(long reqStartTime, long reqEndTime, String status, int requestFail, String requestCause, int failCount,
        String appId, String apiId, String transGlobalFlow, long timestampInMillis, String clientIp, String hostIp) {
        this.reqStartTime = reqStartTime;
        this.reqEndTime = reqEndTime;
        this.status = status;
        this.requestFail = requestFail;
        this.requestCause = requestCause;
        this.failCount = failCount;
        this.appId = appId;
        this.apiId = apiId;
        this.transGlobalFlow = transGlobalFlow;
        this.timestampInMillis = timestampInMillis;
        this.clientIp = clientIp;
        this.hostIp = hostIp;
    }

    public long getTimestampInMillis() {
        return timestampInMillis;
    }

    public void setTimestampInMillis(long timestampInMillis) {
        this.timestampInMillis = timestampInMillis;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getHostIp() {
        return hostIp;
    }

    public void setHostIp(String hostIp) {
        this.hostIp = hostIp;
    }
}